package com.colabo.j2ee.web.oaf.menu.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.colabo.j2ee.web.core.exception.ServiceException;
import com.colabo.j2ee.web.core.service.impl.DefaultServiceImpl;
import com.colabo.j2ee.web.oaf.common.AppConstants;
import com.colabo.j2ee.web.oaf.menu.IMenuService;

public class MenuServiceImpl extends DefaultServiceImpl implements IMenuService {
	public List doFilter(List menus) {
		return menus;
	}

	public List getAllMenus() throws Exception {
		return find_iBatis("menu.getAllMenus", "");
	}

	public List getMenuKyListByUrl(String url) throws ServiceException {
		Map params = new HashMap();
		params.put("menuType", AppConstants.RESOURCE_TYPE_MENU);
		params.put("urlType", AppConstants.RESOURCE_TYPE_URL);
		params.put("url", url);
		return find_iBatis("web.getMenuKyListByUrl", params);
	}
	
	
}
